﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bullet : MonoBehaviour
{
    IEnumerator AutoRecycle()
    {
        yield return new WaitForSeconds(3f);

        ObjectPool.GetInstance().RecycleObj(gameObject);
    }

    private void OnEnable()
    {
        StartCoroutine(AutoRecycle());
    }
}
